package com.dff.jrfw;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.databinding.DataBindingUtil;

import com.dff.jrfw.databinding.ActivitySettingBinding;

public class SettingActivity extends BaseActivity implements View.OnClickListener {

    private ActivitySettingBinding binding;

    public static void callMe(Context context) {
        Intent intent = new Intent(context, SettingActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_setting);
        initView();
    }

    private void initView() {
        binding.ivBack.setOnClickListener(this);
        binding.layoutAccountManage.setOnClickListener(this);
        binding.layoutBio.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.layout_account_manage:
                AccountManageActivity.callMe(SettingActivity.this);
                break;
            case R.id.layout_bio:
                BiometricIdentifyActivity.callMe(SettingActivity.this);
                break;

        }
    }

}